-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement calibrated ADC API for S3 #641
Conversation
b8a3afd
to
5a89305
Compare
I would appreciate if someone who has the tools could test the example. I just picked some number out of thin air so it would be good to know if those are at least in the ballpark of reality. |
Code looks good to me and the raw values range also looks good. As you said would be good if someone with the appropriate equipment could verify the numbers |
aff46bd
to
2686f05
Compare
I would appreciate if we could push this PR forward. The accuracy of the assumed VRef and other parameters may be improved later. The PR works well enough and the measured values are in the ballpark of reality (I just can't say for sure because my hardware's 1MOhm/1MOhm divider just doesn't play nice with the ADC's input impedance). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for working on this!
* adc_cal: s3: Add efuse functions for reading calibration * Add changelog entry * Implement calibrated ADC API for S3 * adc_cal: s3: Add calibrated ADC reading example * Clean up * Prefer where clauses * Clean up unnecessary unsafe blocks * Fix autolinks --------- Co-authored-by: Scott Mabin <scott@mabez.dev>
Thank you!
Thank you for your contribution.
Please make sure that your submission includes the following:
Must
errors
orwarnings
.cargo fmt
was run.CHANGELOG.md
in the proper section.Nice to have
This PR implements ADC calibration on top of #555 sor the S3. The PR also defines the constants for the S2, but does not implement the example, the efuse functions or calibration types.
cc #326